@extends('host.custom.common.common')
@section('c-head')
<script type="text/javascript">
    var PAGE_DATA = {
        pagingObj : {
            total : 0,
            perpage : 7,
            page : 1
        }
    };
</script>

@stop
@section('body')
        <!-- top_test -->
<div id="top_test"> </div>

<!-- web_logo_search -->
<div id="web_logo_search"> </div>

<!-- comm_nav -->
<div id="comm_nav"> </div>


<div class="com-w mt20">
    <div class="wrapper clearfix">
        <div  class="w220 mr20 comm-left-menu">
            <div class="menu-top-title">供应商中心</div>
            <div id="leftmenuitems">
            </div>
        </div>

        <div class="w960 comm-main">
            <div class="main-release clearfix">
                <div class="main-release-nav">
                    您当前的位置：首页 > 供应商中心 > 审批采购商
                </div>
                <div class="main-release-title">
                    <span class="icons"></span>
                        <span class="release-title-h3 f16">
                            采购商审批
                        </span>
                </div>
                <div class="main-release-from">

                    <div class="h60">
                        <div class="mt30 comm-oper-line w700 clearfix">
                            <div class="oper-item lbl-txt">选择申请日期: </div>
                            <div class="oper-item">
                                <input type="text" class="w130 h30" id="startTime" maxlength="16" value=""/>
                                ~
                                <input type="text" class="w130 h30" id="endTime" maxlength="16" value=""/>
                            </div>
                            <div class="oper-item lbl-txt ml10">采购商名称: </div>
                            <div class="oper-item">
                                <input type="text" class="w130 h30" id="name" maxlength="20" value=""/>
                            </div>

                            <div class="btn btn-warn btn-70x30 ml10" onclick="queryList()">查询</div>
                        </div>
                    </div>
                    <div class="comm-tbl">
                        <div class="head">
                            <ul class="clearfix">
                                <li class="w220"> 采购商名称 </li>
                                <li class="w240"> 申请时间 </li>
                                <li class="w240"> 申请状态 </li>
                                <li class="w260"> 操作 </li>
                            </ul>
                        </div>
                        <div id="commTabs_1_body" class="body clearfix">

                        </div>
                        <div id="comm-paging" class="comm-paging" style="float: right;"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>


<!-- foot_nav -->
<div id="foot_nav"> </div>

<div id="bottom_main">  </div>

<script type="text/template" id="item-template">
    <%_.each(obj, function(item){%>

    <ul class="one-line clearfix"  data-id="<%=item.id%>" >
        <li class="w220 f-orange"> <%=item.companyname%> </li>
        <li class="w240 f-grey-1"> <%=item.applydate%>  </li>
        <li class="w240 f-grey-1"> <%=item.state%> </li>
        <li class="w260">

            <a class="btn btn-default btn-70x30 de" href="<%=item.detail_url%>">详情</a>
            <% if(item.operate == "1") { %>
            <div class="btn btn-warn btn-70x30 ag" >同意</div>
            <div class="btn btn-important btn-70x30 re" >拒绝</div>
            <% } else {%>
            <div class="btn btn-warn btn-70x30" style="visibility:hidden;">同意</div>
            <div class="btn btn-important btn-70x30" style="visibility:hidden;">拒绝</div>
            <% }%>
        </li>
    </ul>

    <%});%>
</script>
<!-- 确认框 -->
<script type="text/template" id="item-confirm">
    <div class="dialog-div">
        <div>是否确认处理该条信息</div>
        <div class="price-game-btn">
            <div class="btn btn-gray btn-w140x40 remove">取消</div>
            <div class="btn btn-warn btn-w140x40" id="tj">提交</div>
        </div>
    </div>
</script>
<!-- 错误信息框 -->
<script type="text/template" id="item-error">
    <div class="dialog-div">
        <div>操作错误，请重新操作</div>
        <div class="price-game-btn">
            <div class="btn btn-warn btn-w140x40" id="ok" code="">确认</div>
        </div>
    </div>
</script>
<link rel="stylesheet" href="/assets/b2b/css/jquery-ui.min.css">

<script type="text/javascript" src="/assets/b2b/js/libs/dialog-min.js"></script>
<script type="text/javascript" src="/assets/b2b/js/libs/jquery.validate.min.js"></script>
<script src="/assets/b2b/js/libs/messages_zh.js"></script>
<script src="/assets/b2b/js/libs/jquery.paging.min.js"></script>
<script src="/assets/b2b/js/libs/jquery-ui.min.js"></script>
<script src="/assets/b2b/js/pageModules/supplyer/S9.dev.js"></script>
@stop